<template>
  <u-modal
    v-model="checkPriceShow"
    :width="'650'"
    class="modal1"
    :show-title="false"
    contentBg="transparent"
    :showConfirmButton="false">
    <view class="freightSettlement-modal-box">
      <image
        class="topimg"
        :src="`${imgUrl}logintip.png`" />
      <view class="d-flex j-c title">提示</view>
      <view class="freightSettlement-center-box m-t-16">
        {{ resultMessage }}
      </view>
      <view class="freightSettlement-center-box m-t-25">是否继续抢单?</view>
      <view class="freightSettlement-btn">
        <u-button
          class="u-btn"
          @click="checkPriceCancel"
          :throttle-time="0"
          >取 消
        </u-button>
        <u-button
          class="u-btn"
          type="primary"
          @click="checkPriceConfirm"
          >立即抢单</u-button
        >
      </view>
    </view>
  </u-modal>
</template>
<script>
import { imgUrl } from 'common/httpEnum'

export default {
  name: 'loadinginformationModal',
  props: {
    checkPriceShow: {
      type: Boolean,
      default: false
    },
    resultMessage: {
      type: String,
      default: undefined
    }
  },
  data() {
    return {
      imgUrl
    }
  },
  methods: {
    checkPriceConfirm() {
      this.$emit('confirm')
    },
    checkPriceCancel() {
      this.$emit('cancel', false)
    }
  }
}
</script>
<style lang="scss" scoped>
@import './modal.scss';
</style>
